package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Date;

//@EnableTask
//@EnableScheduling
@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
//	@Scheduled(fixedRate = 1000)
//	public void testFixRate() {
//		System.out.println("每隔1秒执行一次：" + new Date());
//	}
//	@Bean
//	public CommandLineRunner commandLineRunner() {
//		return new HelloWorldCommandLineRunner();
//	}
//
//	public static class HelloWorldCommandLineRunner implements CommandLineRunner {
//
//		@Override
//		public void run(String... strings) throws Exception {
//			System.out.println("Hello, World!");
//		}
//	}
}

